<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil:  Fichier source de src/Entrepot.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/Entrepot.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_entrepot_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef ENTREPOT_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define ENTREPOT_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00017"></a><a class="code" href="struct_entrepot.html">00017</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00018"></a>00018 {
<a name="l00019"></a><a class="code" href="struct_entrepot.html#a8f599373641c7fe959cde311e4b6c3ec">00019</a>   <span class="keywordtype">int</span> <a class="code" href="struct_entrepot.html#a8f599373641c7fe959cde311e4b6c3ec">bois</a>;             
<a name="l00020"></a><a class="code" href="struct_entrepot.html#a358b89d93252f3e48273ab1d5166b758">00020</a>   <span class="keywordtype">int</span> <a class="code" href="struct_entrepot.html#a358b89d93252f3e48273ab1d5166b758">metal</a>;            
<a name="l00021"></a><a class="code" href="struct_entrepot.html#a2f0d0295d9568a2b509716c966d806d3">00021</a>   <span class="keywordtype">int</span> <a class="code" href="struct_entrepot.html#a2f0d0295d9568a2b509716c966d806d3">houblon</a>;          
<a name="l00022"></a><a class="code" href="struct_entrepot.html#a6e0f849963e24603374021b519c8608a">00022</a>   <span class="keywordtype">int</span> <a class="code" href="struct_entrepot.html#a6e0f849963e24603374021b519c8608a">biere</a>;            
<a name="l00023"></a><a class="code" href="struct_entrepot.html#aa9f466b0c882761f9fb0d8f8c89ea40a">00023</a>   <span class="keywordtype">int</span> <a class="code" href="struct_entrepot.html#aa9f466b0c882761f9fb0d8f8c89ea40a">nourriture</a>;       
<a name="l00024"></a><a class="code" href="struct_entrepot.html#a86db5eceb20c434eab0ef9c8d9721190">00024</a>   <span class="keywordtype">int</span> <a class="code" href="struct_entrepot.html#a86db5eceb20c434eab0ef9c8d9721190">modifProduction</a>;  
<a name="l00025"></a>00025 } <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a>;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">/*========================== Gestion de la mémoire ==========================*/</span>
<a name="l00033"></a>00033 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#a621f6c9a20701050ff75543708d7c36a" title="Initialise le contenu de l&#39;Entrepôt.">initRessourcesEntr</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock);
<a name="l00034"></a>00034 
<a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#a2a35dc9e5dd452fee000d94797ce4c71" title="Crée un Entrepôt.">creerEntr</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> **pnouvEntr);
<a name="l00041"></a>00041 
<a name="l00046"></a>00046 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#a0807603e8645ec8be123a92401499e71" title="Libère la mémoire allouée pour un Entrepot donné">detruireEntr</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pentr);
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="comment">/*============================= Accesseurs =============================*/</span>
<a name="l00056"></a>00056 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_entrepot_8c.html#adf98f0bbde1c3d1bdbb9349dca0ef572" title="Retourne la quantité de bois stockée dans l&#39;entrepôt.">getBoisEntr</a>(<span class="keyword">const</span> <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock);
<a name="l00057"></a>00057 
<a name="l00065"></a>00065 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_entrepot_8c.html#ae2abc42762bec6fa2722a8b11054d2e0" title="Retourne la quantité de métal stockée dans l&#39;entrepôt.">getMetalEntr</a>(<span class="keyword">const</span> <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock);
<a name="l00066"></a>00066 
<a name="l00074"></a>00074 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_entrepot_8c.html#a7e4b0fe172f3c42e0e97663bcc4b1073" title="Retourne la quantité de houblon stockée dans l&#39;entrepôt.">getHoublonEntr</a>(<span class="keyword">const</span> <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock);
<a name="l00075"></a>00075 
<a name="l00083"></a>00083 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_entrepot_8c.html#ababea63624e0c163960b867eb931ed62" title="Retourne la quantité de nourriture stockée dans l&#39;entrepôt.">getNourritureEntr</a>(<span class="keyword">const</span> <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock);
<a name="l00084"></a>00084 
<a name="l00092"></a>00092 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_entrepot_8c.html#a2c01c8bf1ca0512b0dd0cca117bd50ec" title="Retourne la quantité de bière stockée dans l&#39;entrepôt.">getBiereEntr</a>(<span class="keyword">const</span> <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock);
<a name="l00093"></a>00093 
<a name="l00100"></a>00100 <span class="keywordtype">int</span> <a class="code" href="_entrepot_8c.html#a4b2e4e1cfab18bf5a47f54f484687783" title="Retourne le bonus a la vitesse de production lié aux technologies.">getBonusProd</a>(<span class="keyword">const</span> <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock);
<a name="l00101"></a>00101 
<a name="l00102"></a>00102 <span class="comment">/*============================== Mutateurs ==============================*/</span>
<a name="l00113"></a>00113 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#a8aac1330953c67a2cde506264897d4bd" title="Change la valeur indiquant la quantité de bois de l&#39;entrepôt.">ajouteBoisEntr</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock, <span class="keywordtype">int</span> quantite);
<a name="l00114"></a>00114 
<a name="l00125"></a>00125 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#ad0d06f51440cbd989de90b3e7d34a028" title="Change la valeur indiquant la quantité de métal de l&#39;entrepôt.">ajouteMetalEntr</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock, <span class="keywordtype">int</span> quantite);
<a name="l00126"></a>00126 
<a name="l00137"></a>00137 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#aac0ddef4c9db689ad803931550daf2ea" title="Change la valeur indiquant la quantité de houblon de l&#39;entrepôt.">ajouteHoublonEntr</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock, <span class="keywordtype">int</span> quantite);
<a name="l00138"></a>00138 
<a name="l00150"></a>00150 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#adbaa27744682777def8000dbab35648b" title="Change la valeur indiquant la quantité de nourriture de l&#39;entrepôt.">ajouteNourritureEntr</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock, <span class="keywordtype">int</span> quantite);
<a name="l00151"></a>00151 
<a name="l00162"></a>00162 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#abcb3cd954c33278059425ac8b359a244" title="Change la valeur indiquant la quantité de bière de l&#39;entrepôt.">ajouteBiereEntr</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock, <span class="keywordtype">int</span> quantite);
<a name="l00163"></a>00163 
<a name="l00172"></a>00172 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#a6783448ebe0af6e937e014de925eb766" title="Change la valeur de vitesse de production.">ajouteModifProd</a>(<a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a> *pstock, <span class="keywordtype">int</span> modificateur);
<a name="l00173"></a>00173 
<a name="l00174"></a>00174 <span class="comment">/*========================== Fonctions de Test ==========================*/</span>
<a name="l00180"></a>00180 <span class="keywordtype">void</span> <a class="code" href="_entrepot_8c.html#a0319947e25851f1e54453fc11bae5593" title="Teste les différentes fonctions du module Entrepot.">testEntrepot</a>();
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:14 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
